import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/zhangyuhui',
      name: 'zhangyuhui',
      component: () => import('./views/zhangyuhui'),
      children: [
        {
          path: 'zhangyuhuiSecond',
          name: 'zhangyuhuiSecond',
          component: () => import('./views/zhangyuhui/zhangyuhuiSecond')
        }
      ]
    },
    {
      path: '/zhangyuhuiThird',
      name: 'zhangyuhuiThird',
      component: () => import('./views/zhangyuhui/zhangyuhuiThird')
    },
    {
      path: '/gaodemap',
      name: 'gaodemap',
      component: () => import('./views/zhangyuhui/gaodemap')
    },
    {
      path: '/baidumap',
      name: 'baidumap',
      component: () => import('./views/zhangyuhui/baiduMap')
    },
    {
      path: '/zhourusheng',
      name: 'zhourusheng',
      component: () => import('./views/zhourusheng')
    },
    {
      path: '/lijun',
      name: 'lijun',
      component: () => import('./views/lijun'),
      children: [
        {
          path: '',
          // name: 'pieTest',
          component: () => import('./views/lijun/pieTest')
        },
        {
          path: 'pietest',
          name: 'pieTest',
          component: () => import('./views/lijun/pieTest')
        },
        {
          path: 'bartest',
          name: 'barTest',
          component: () => import('./views/lijun/barTest')
        },
        {
          path: 'firstbar',
          name: 'firstbar',
          component: () => import('./views/lijun/firstVersionBar')
        },
        {
          path: 'percentage',
          name: 'percentage',
          component: () => import('./views/lijun/singleDatePie')
        },
        {
          path: 'secondbar',
          name: 'secondbar',
          component: () => import('./views/lijun/secondbar')
        },
        {
          path: 'thirdbar',
          name: 'thirdbar',
          component: () => import('./views/lijun/thirdbar')
        },
        {
          path: 'linetest',
          name: 'linetest',
          component: () => import('./views/lijun/linetest')
        }
      ]
    }
  ]
})
